:root {
  --pink-light: #ffe6f0;
  --pink-main: #ff4da6;
  --pink-dark: #cc3a82;
  --pink-gradient: linear-gradient(45deg, #ff4da6, #ff1a75);
  --text-color: #333;
  --bg-color: var(--pink-light);
}

.recommend-page {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 侧边栏样式 */
.sidebar {
  width: 220px;
  background-color: white;
  border-right: 1px solid #eee;
  padding: 20px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-logo img {
  width: 100px;
}

.sidebar-nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar-nav li {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-nav li:hover {
  background-color: #f9f9f9;
}

.sidebar-nav li.active {
  background-color: #f0f0f0;
  color: var(--pink-main);
}

.sidebar-nav .icon {
  margin-right: 10px;
  font-size: 20px;
}

.login-btn {
  width: 100%;
  background: var(--pink-main);
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 24px;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.login-btn:hover {
  background: var(--pink-dark);
}

/* 主内容区域 */
.content {
  margin-left: 220px; /* 与侧边栏宽度一致 */
}

/* 顶部栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  background: white;
  box-shadow: 0 2px 8px rgba(255, 77, 166, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 搜索框和按钮容器居中 */
.search-container {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

/* 搜索栏 */
.search-btn {
  background: var(--pink-main);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: var(--pink-dark);
}

.profile-btn {
  background: var(--pink-gradient);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 77, 166, 0.6);
  transition: background 0.3s ease;
}

.profile-btn:hover {
  background: var(--pink-dark);
}

/* 推荐内容网格 */
.content-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  overflow: auto;
}

/* 每个帖子样式 */
.post-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(255, 77, 166, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
  height: 100%;
}

.post-item:hover {
  transform: translateY(-5px);
}

.post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-desc {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-color);
  flex-grow: 1;
  line-height: 1.4;
}

/* 空白占位样式 */
.empty-post {
  background-color: #fff0f6;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ff4d94;
  font-weight: bold;
  font-size: 18px;
  cursor: default;
}

.empty-post:hover {
  background-color: #ffe6f0;
  transform: none;
}

.pagination-controls {
  text-align: center;
  margin: 20px 0;
  font-size: 16px;
}

.pagination-controls button {
  margin: 0 10px;
  padding: 6px 12px;
  border: none;
  background-color: #f88;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-controls button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

